<template>
  <div>
    登录哦
    <button @click="login">login</button>
  </div>
</template>
<script>
export default {
  methods: {
    login() {
      localStorage.setItem("token", 1231312);
      console.log(localStorage.getItem("token"));
    },
  },
  mounted() {},
};
</script>
